package com.stock.common.vo;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 基础分页查询 VO
 */
@Schema(description = "分页查询参数")
public class BasePageQueryVO {

    /**
     * 当前页
     */
    @Schema(description = "当前页", example = "1")
    private Long currPage;

    /**
     * 每页条数
     */
    @Schema(description = "每页条数", example = "10")
    private Long size;

    public Long getCurrPage() {
        return currPage != null ? currPage : 1L;
    }

    public void setCurrPage(Long currPage) {
        this.currPage = currPage;
    }

    public Long getSize() {
        return size != null ? size : 10L;
    }

    public void setSize(Long size) {
        this.size = size;
    }
}
